package FirstTest;

import org.testng.annotations.Test;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.AfterTest;

public class NewTest {
	
   

	@BeforeClass
	  public void beforeClass() {
		  System.out.println("my First Function from first file,  beforeTest");

	  }
  @BeforeTest
  public void beforeTest() {
	  System.out.println("my First Function from first file,  beforeTest");

  }


  @Test (priority= 2)
  public void function () throws Exception{    // handle errors
	  System.out.println("my First Function from first file,  Test");

	  
  }
  @Test (priority= 1)
  public void function1 () {
	  System.out.println("my First Function from first file,  Test1");

	  
  }
  
  @AfterTest
  public void afterTest() {
	  System.out.println("my First Function from first file,  afterTest");

	  
  }

  
}
